
def getYinZi(n):
    lst = []
    for i in range(1,n):
        if n%i == 0:
            lst.append(i)
    return lst

if __name__=="__main__":

    for i in range(2,1001):
        res = getYinZi(i)
        if sum(res) == i:
            strLst = [ str(item) for item in res ]
            print("+".join(strLst)+"="+str(i))

